//
//  ByRegisterApiUser.h
//  oc_knowledge
//
//  Created by justiOS on 17/1/11.
//  Copyright © 2017年 com.itboye. All rights reserved.
//

#import "ByNetBaseApi.h"

// model
#import "ByModelUser.h"

#define code_log_debug 1

#if code_log_debug == 1
#define CodeLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define CodeLog(...)
#endif


@interface ByApiUser : ByNetBaseApi


/** 登陆 */
+ (void)login:(ByNetParamsModel *)model
      success:(void(^)(ByNetBaseResult *result))success
      failure:(void(^)(ByNetBaseResult *result))failure;



//手机号发送验证码
+ (void)sendCode:(ByNetParamsModel *)model
         success:(void(^)(ByNetBaseResult *result))success
         failure:(void(^)(ByNetBaseResult *result))failure;



//用户个人资料修改
+ (void)userUpdate:(ByNetParamsModel *)model
           success:(void(^)(ByNetBaseResult *result))success
           failure:(void(^)(ByNetBaseResult *result))failure;





+ (void)loginSession:(ByNetParamsModel *)model
             success:(void(^)(ByNetBaseResult *result))success
             failure:(void(^)(ByNetBaseResult *result))failure;

+ (void)suggestAdd:(ByNetModel *)model
           success:(void(^)(ByNetBaseResult *result))success
           failure:(void(^)(ByNetBaseResult *result))failure;


//消息查询接口
+ (void)messageQuery:(ByNetModel *)model
             success:(void(^)(ByNetBaseResult *result))success
             failure:(void(^)(ByNetBaseResult *result))failure;


@end
